local key = KEYS[1];
local list = redis.call("ZRANGE",key,0,-1);
local array = {};
if (list~=nil) then
  local listSize = table.getn(list);
  for i=1,listSize do
    --local tmp = redis.call("HVALS",list[i]);
    local tmp = redis.call("HGETALL",list[i]);
    array[i] = tmp;
  end
end
--cmsgpack
--return cmsgpack.pack(array);
return array;